<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
	$whitelist = array('localhost', '127.0.0.1');

	if(in_array($_SERVER['HTTP_HOST'], $whitelist)){
    	echo '<base href="/juro/" />';
	}
	else {
		echo '<base href="/" />';	
	}
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
<?php echo $this->load->view('layouts/html/_head_admin.php'); ?>
</head>

<body>
	<div class="account">
		<div class="container_12">
			<div class="grid_12">
				<div class="account_opt">
				<?php if($this->session->userdata('logged_in')):?>
					<span>Welcome <?php echo $this->session->userdata('admin_username')?></span> | 
					<a href="<?php echo site_url('admin/logout')?>">Logout</a>
				<?php endif; ?>
				</div>
			</div>
			<div class="clear">&nbsp;</div>
		</div>
	</div>
	<div class="header">
		    <div class="container_12">
			
            
           <a href="<?php echo site_url()?>" class="logo"><img src="<?php echo site_url('assets/images/logo.png')?>" alt="Logo" width="409px" height="80px" /> <em>Admin Panel</em></a>
            <div class="clear">&nbsp;</div>
        </div>
		
		
	</div>
	
	<div class="menu-container">
			<div class="container_12">
				<div class="grid_12">
					 <?php echo $this->load->view('layouts/menu/_admin', '', TRUE); ?>
					 <div class="clear">&nbsp;</div>
				</div>
				<div class="clear">&nbsp;</div>
			</div>
	</div>
	
    <div class="container_12 content-wrapper">
<!--		
        <div class="grid_2">
           
        </div>-->
        <div class="grid_12">
			<div class="border">
        <?php echo $yield; ?>
			</div>
        </div>
		
		<div class="clear">&nbsp;</div>
    </div>

</body>
</html>